package com.sakila.pojo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;

public class Rental implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2501920875304787524L;
	
	private Integer id;
	@JsonFormat(shape=Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date rentalDate;
	private Inventory inventory;
	private Member customer;
	@JsonFormat(shape=Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date returnDate;
	private Staff staff;
	private Date lastUpdate;
	
	public Rental() {
		// TODO Auto-generated constructor stub
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getRentalDate() {
		return rentalDate;
	}

	public void setRentalDate(Date rentalDate) {
		this.rentalDate = rentalDate;
	}

	public Inventory getInventory() {
		return inventory;
	}

	public void setInventory(Inventory inventory) {
		this.inventory = inventory;
	}

	public Member getCustomer() {
		return customer;
	}

	public void setCustomer(Member customer) {
		this.customer = customer;
	}

	public Date getReturnDate() {
		return returnDate;
	}

	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}

	public Staff getStaff() {
		return staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}
}
